home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / clang / netclb23.zip / SERVER.H < prev    next >
C/C++ Source or Header  |  1994-05-20  |  4KB  |  117 lines

  1. #ifndef SERVER_H
  2. #define SERVER_H
  3.  
  4. /******************************/
  5. /* Server Services prototypes */
  6. /******************************/
  7.  
  8. typedef struct {
  9.    word buffer_length;
  10.    nw_long system_elapsed_time;
  11.    nw_int cache_buffer_count;
  12.    nw_int cache_buffer_size;
  13.    nw_int dirty_cache_buffers;
  14.    nw_long cache_read_requests;
  15.    nw_long cache_write_requests;
  16.    nw_long cache_hits;
  17.    nw_long cache_misses;
  18.    nw_long physical_read_requests;
  19.    nw_long physical_write_requests;
  20.    nw_int physical_read_errors;
  21.    nw_int physical_write_errors;
  22.    nw_long cache_get_requests;
  23.    nw_long cache_full_write_requests;
  24.    nw_long cache_partial_write_requests;
  25.    nw_long background_dirty_writes;
  26.    nw_long background_aged_writes;
  27.    nw_long total_cache_writes;
  28.    nw_long cache_allocations;
  29.    nw_int thrashing_count;
  30.    nw_int LRU_block_was_dirty;
  31.    nw_int read_beyond_write;
  32.    nw_int fragmented_write_occurred;
  33.    nw_int cache_hit_unavail_block;
  34.    nw_int cache_block_scrapped;
  35.    } DISK_CACHE_STATISTICS;         /* GetDiskCacheStatistics */
  36.  
  37. typedef struct {
  38.    char server_name[48];
  39.    byte netware_version;
  40.    byte netware_subversion;
  41.    nw_int connections_supported;
  42.    nw_int connections_in_use;
  43.    nw_int max_connected_volumes;
  44.    byte os_revision;
  45.    byte SFT_level;
  46.    byte TTS_level;
  47.    nw_int peak_connections_used;
  48.    byte accounting_version;
  49.    byte VAP_version;
  50.    byte queuing_version;
  51.    byte print_server_version;
  52.    byte virtual_console_version;
  53.    byte security_restrictions_level;
  54.    byte internet_bridge_version;
  55.    byte reserved[60];
  56.    } FILE_SERVER_INFO;          /* GetFileServerInformation */
  57.  
  58. typedef struct {
  59.    word buffer_length;
  60.    nw_long system_elapsed_time;
  61.    byte physical_disk_channel;
  62.    byte drive_removable_flag;
  63.    byte physical_drive_type;
  64.    byte controller_drive_number;
  65.    byte controller_number;
  66.    byte controller_type;
  67.    nw_long drive_size;
  68.    nw_int drive_cylinders;
  69.    byte drive_heads;
  70.    byte sectors_per_track;
  71.    char drive_definition_string[64];
  72.    nw_int io_error_count;
  73.    nw_long hot_fix_table_start;
  74.    nw_int hot_fix_table_size;
  75.    nw_int hot_fix_blocks_available;
  76.    byte hot_fix_disabled;
  77.    } PHYSICAL_DISK_STATISTICS;         /* GetPhysicalDiskStatistics */
  78.  
  79. int CheckConsolePrivileges(void);
  80. int ClearConnectionNumber(int connection);
  81. int DisableFileServerLogin(void);
  82. int DisableTransactionTracking(void);
  83. int DownFileServer(int forceIt);
  84. int EnableFileServerLogin(void);
  85. int EnableTransactionTracking(void);
  86. int GetBinderyObjectDiskSpaceLeft(long objectID,long *systemElapsedTime,
  87.      long *unusedDiskBlocks,byte *restrictionsEnforced);
  88. int GetConnectionsOpenFiles(int connection,int *sequence,word *taskNumber,
  89.      byte *lockFlag,byte *accessFlag,byte *lockType,byte *nameSpace,
  90.      byte *volumeNumber,dword *parentDirEntry,
  91.      dword *directoryEntry,char *fileName);
  92. int GetConnectionsUsageStatistics(int connection,long *systemElapsedTime,
  93.      double *bytesRead,double *bytesWritten,long *totalRequestPackets);
  94. int GetDiskCacheStatistics(DISK_CACHE_STATISTICS *ReplyBuffer);
  95. int GetDiskUtilisation(long objectID,byte volumeNumber,
  96.      word *usedDirectories,word *usedFiles,word *usedBlocks);
  97. int GetEncryptionKey(byte *key);
  98. void GetFileServerDateTime(    int *hours,int *minutes,int *seconds,
  99.      int *day,int *month,int *year,int *dayOfWeek);
  100. int GetFileServerInformation(FILE_SERVER_INFO *replyBuffer);
  101. int GetFileServerLoginStatus(int *loginEnabled);
  102. int GetNetworkSerialNumber(dword *serverSerialNumber ,
  103.                            word  *appSerialNumber);
  104. int GetPathFromDirectoryEntry(byte nameSpace,byte volumeNumber,
  105.      dword directoryEntry,char *path);
  106. int GetPhysicalDiskStatistics(byte physicalDiskNumber,
  107.      PHYSICAL_DISK_STATISTICS *replyBuffer);
  108. int GetSemaphoreInformation( char *semaphoreName,
  109.                              int *sequence,word *openCount,
  110.                              int *semaphoreValue,
  111.                              word *logicalConnection,
  112.                              word *taskNumber );
  113. int SendConsoleBroadcast(byte connectionCount, byte *connections,
  114.                          char *message );
  115.                          
  116. #endif
  117.